package com.example.myapplication.bean.category

import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import java.io.Serializable

/**
 *类目，体系结构树的bean
 *
 * @author : Kun
 * @date : 2021/6/16
 * @time : 10:30
 */
data class CategoryBean(
    @SerializedName("courseId") var courseId: Int,
    @SerializedName("id") var id: Int,
    @SerializedName("name") var name: String,
    @SerializedName("order") var order: Int,
    @SerializedName("parentChapterId") var parentChapterId: Int,
    @SerializedName("visible") var visible: Int,
    @SerializedName("children") var children: MutableList<CategoryBean>
) :Serializable

//   {
//        "children": [],
//        "courseId": 13,
//        "id": 294, // 该id在获取该分类下项目时需要用到
//        "name": "完整项目", // 该分类名称
//        "order": 145000,
//        "parentChapterId": 293,
//        "visible": 0
//    }